<template>
  <div class="item-wrapper">
    <div class="item-left">{{ name }}</div>
    <div class="item-right">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
const props = defineProps({
  name: {
    type: String,
  },
});
</script>

<style lang="scss" scoped>
.item-wrapper {
  position: relative;
  display: flex;
  margin: 20px 0;
  .item-left {
    width: 60px;
    text-align: left;
    margin-left: 10px;
    font-size: 12px;
    margin-top: 8px;
  }
  .item-right {
    flex: 1;
    display: flex;
    align-items: center;
  }
}
</style>
